#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Stock information
# Default stock in pre-history: Cisco, Nvidia, Juniper
DEFSTOCK = ('CSCO', 'NVDA', 'JNPR')
DEFSTOCKPOOL = {'CSCO': ('CSCO', 15.99, 1e6),
                'NVDA': ('NVDA', 15.99, 1e6),
                'BADU': ('BADU', 15.99, 1e6),
                'MSFT': ('MSFT', 15.99, 1e6),
                'YHOO': ('YHOO', 13.59, 1e6),
                'MRVL': ('MRVL', 12.58, 1e6),
                'GOOG': ('GOOG', 563.77, 1e6),
                'AAPL': ('AAPL', 376.99, 1e6),
                'AOL' : ('AOL' , 11.78, 1e6),
                'RIMM': ('RIMM', 24.56, 1e6),
                'BRCM': ('BRCM', 33.84, 1e6)}
INIT_AMOUNT = 1e6
# Trader number level
TRADER_LOW = 1000
TRADER_HIGH = 9999

# Trader sleep an random secs before post a request
TRADE_TIME_LOW = 0
TRADE_TIME_HIGH = 10

TRADE_STATE_A = 'TRADE_ACCEPTED'
TRADE_STATE_S = 'TRADE_SUCCESSED'
TRADE_STATE_W = 'TRADE_WAITING'
TRADE_STATE_F = 'TRADE_FAILED'

HOST = '127.0.0.1'                 # Symbolic name meaning all available interfaces
PORT = 50007
MAX_CLIENT = 100

TRADER_NUMBER = 5

